/*
 * Project: D-Link TR-069
 * 
 * File:   data.h
 * 
 * Authors: Taron Sargsyan <taronhsargsyan@gmail.com>		
 * 	    Suren Gharagyozyan	
 *
 * Created on September 20, 2011, 11:53 AM
 * 
 * 
 * This object is useful to store e.g.
 * XML datas(requests) which must be send from a ACS_Server to tr069 client.
 * 
 * Copyright (C) 2011 D-Link Company.  All rights reserved.
 */

#ifndef _DATA_H_
#define _DATA_H_

char* informResponse =  "<soapenv:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" 
          "    <soapenv:Header>\n" 
          "        <cwmp:ID soapenv:mustUnderstand=\"%i\"></cwmp:ID>\n" 
          "    </soapenv:Header>\n" 
          "     <soapenv:Body>\n" 
          "        <cwmp:InformResponse>\n" 
          "            <MaxEnvelopes>%i</MaxEnvelopes>\n" 
          "        </cwmp:InformResponse>\n" 
          "    	 </soapenv:Body>\n" 
          "	</soapenv:Envelope>\n";

 char* getParamName = "<soap-env:Envelope xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
	  "<soap-env:Header>\n"
	  "<cwmp:ID soap-env:mustUnderstand=\"%i\"></cwmp:ID>\n"
	  "</soap-env:Header>\n"
	  "<soap-env:Body>\n"
	  " <cwmp:GetParameterNames>\n"
	  "  <ParameterPath></ParameterPath>\n"
	  "  <NextLevel>%i</NextLevel>\n"
	  "</cwmp:GetParameterNames>\n"
	  "</soap-env:Body>\n"
	  "</soap-env:Envelope>\n";

char* setValue = "<soapenv:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" 
          "<soapenv:Header>\n" 
          "  <cwmp:ID soapenv:mustUnderstand=\"1\"></cwmp:ID>\n" 
          "</soapenv:Header>\n" 
          "<soapenv:Body>\n" 
          "  <cwmp:SetParameterValues>\n" 
          "    <ParameterList soap:arrayType=\"cwmp:ParameterValueStruct[%i]\">\n" 
          "      %s"
          "    </ParameterList>\n" 
          "   <ParameterKey>null</ParameterKey>\n" 
          "  </cwmp:SetParameterValues>\n" 
          "</soapenv:Body>\n" 
          "</soapenv:Envelope>\n";

char* param_value_struct = "<ParameterValueStruct>\n"
	  " <Name>%s</Name>\n" 
	  " <Value xsi:type=\"xsd:%s\">%s</Value>\n"
	  "</ParameterValueStruct>\n"; 
			    
char* get_param_value = "<SOAP-ENV:Envelope xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
	  "<SOAP-ENV:Header>\n"
	  " <cwmp:ID SOAP-ENV:mustUnderstand=\"1\"></cwmp:ID>\n"
	  "</SOAP-ENV:Header>\n"
	  "<SOAP-ENV:Body>\n"
	  " <cwmp:GetParameterValues xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
	  "	<ParameterNames SOAP-ENC:arrayType=\"xsd:string[%i]\">\n"
	  "%s"
	  "  <string>InternetGatewayDevice.DeviceInfo.ModelName</string>\n"
	  " <string>InternetGatewayDevice.DeviceInfo.SerialNumber</string>\n"
	  " <string>InternetGatewayDevice.DeviceInfo.Manufacturer</string>\n"
	  " <string>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</string>\n"
	  " <string>InternetGatewayDevice.DeviceInfo.ProductClass</string>\n"
	  "	</ParameterNames>\n"
	  " </cwmp:GetParameterValues>\n"
	  "</SOAP-ENV:Body>\n"
	  "</SOAP-ENV:Envelope>\n";
		    
char* get_param_value_string = "<string>%s</string>\n";


char* get_model_name = "<soap-env:Envelope xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
         "<soap-env:Header>\n"
         "<cwmp:ID soap-env:mustUnderstand=\"1\">0</cwmp:ID>\n"
         "<cwmp:HoldRequests soap-env:mustUnderstand=\"1\">0</cwmp:HoldRequests>\n"
         "</soap-env:Header>\n"
         "<soap-env:Body>\n"
         "<cwmp:GetParameterValues>\n"
         " <ParameterNames soap-enc:arrayType=\"xsd:string[1]\">\n"
         "  <string>InternetGatewayDevice.DeviceInfo.ModelName</string>\n"
         " </ParameterNames>\n"
         "</cwmp:GetParameterValues>\n"
         "</soap-env:Body>\n"
         "</soap-env:Envelope>\n";                   

char* reboot = "<soap-env:Envelope xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
         "<soap-env:Header>\n"
         "<cwmp:ID soap-env:mustUnderstand=\"1\">CPE</cwmp:ID>\n"
	 "<cwmp:HoldRequests soap-env:mustUnderstand=\"1\">0</cwmp:HoldRequests>\n"
         "</soap-env:Header>\n"
         "<soap-env:Body>\n"
	 "   <cwmp:Reboot>\n"
	 "   <CommandKey>1</CommandKey>\n" 
	 "   </cwmp:Reboot>\n"
         "</soap-env:Body>\n"
         "</soap-env:Envelope>\n";
	 
// char* reboot_response = "<soapenv:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" 
//           "    <soapenv:Header>\n" 
//           "        <cwmp:ID soapenv:mustUnderstand=\"1\"></cwmp:ID>\n" 
//           "    </soapenv:Header>\n" 
//           "     <soapenv:Body>\n" 
//           "        <cwmp:RebootResponse>\n" 
// 	  "        <MaxEnvelopes>1</MaxEnvelopes>\n" 
// 	  "        </cwmp:RebootResponse>\n" 
//           "    	 </soapenv:Body>\n" 
//           "	</soapenv:Envelope>\n";
	 		       
char* transfer_complete_response = "<soap-env:Envelope xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
         "<soap-env:Header>\n"
         "<cwmp:ID soap-env:mustUnderstand=\"1\">0</cwmp:ID>\n"
         "<cwmp:HoldRequests soap-env:mustUnderstand=\"1\">1</cwmp:HoldRequests>\n"
         "</soap-env:Header>\n"
	 " <soap-env:Body>\n"
	 "   <cwmp:TransferCompleteResponse/>\n"
	 " </soap-env:Body>\n"
         "</soap-env:Envelope>\n";
	 
char* fw_upgrade = "<soap-env:Envelope xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">\n"
         "<soap-env:Header>\n" 
         "<cwmp:ID soap-env:mustUnderstand=\"1\">0</cwmp:ID>\n" 
	 "<cwmp:HoldRequests soap-env:mustUnderstand=\"1\">1</cwmp:HoldRequests>\n"
         "</soap-env:Header>\n" 
         "<soap-env:Body>\n" 
         "<cwmp:Download>\n" 
         "<CommandKey>comkey1</CommandKey>\n"  
         "<FileType>%s</FileType>\n"  
         "<Url>%s</Url>\n"
         "<Username></Username>\n"
         "<Password></Password>\n"
         "<DelaySeconds>10</DelaySeconds>\n"
         "<SuccessURL></SuccessURL>\n"
         "<FailureURL></FailureURL>\n"
         "<FileSize>%s</FileSize>\n"
         "<TargetFileName></TargetFileName>\n"
         "</cwmp:Download>\n" 
         "</soap-env:Body>\n"
         "</soap-env:Envelope>\n";
	 
#endif










